/*
 * @Date: 2024-08-26 19:18:43
 * @LastEditors: lyx
 * @LastEditTime: 2024-08-26 19:18:56
 * @FilePath: \zod-demo\app\todo\page.js
 * @Description: 
 */
import { findTodos } from './actions';
import Form from './form';

export default async function Page() {

  const todos = await findTodos()

  return (
    <section className="p-2">
      <Form />
      <ul>
        {todos.map((todo) => {
          return <li>{todo}</li>
        })}
      </ul>
    </section>
  );
}
